home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / ilisp / bridge.elc.z / bridge.elc
Emacs Compiled Lisp  |  1998-05-21  |  7.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 33 |on Mon M|ar 9 13|
|00000040| 3a 30 33 3a 33 37 20 31 | 39 39 38 0a 3b 3b 3b 20 |:03:37 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 69 6c 69 73 |s-20.3/l|isp/ilis|
|000000a0| 70 2f 62 72 69 64 67 65 | 2e 65 6c 0a 3b 3b 3b 20 |p/bridge|.el.;;; |
|000000b0| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 32 30 |emacs ve|rsion 20|
|000000c0| 2e 34 20 22 45 6d 65 72 | 61 6c 64 22 20 58 45 6d |.4 "Emer|ald" XEm|
|000000d0| 61 63 73 20 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |acs Luc|id..;;; |
|000000e0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000f0| 20 32 2e 32 35 20 58 45 | 6d 61 63 73 3b 20 32 32 | 2.25 XE|macs; 22|
|00000100| 2d 4d 61 72 2d 39 36 2e | 0a 3b 3b 3b 20 6f 70 74 |-Mar-96.|.;;; opt|
|00000110| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|00000120| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|00000130| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000140| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000150| 6e 20 45 6d 61 63 73 20 | 31 39 2e 0a 0a 28 69 66 |n Emacs |19...(if|
|00000160| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000170| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000180| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000190| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|000001a0| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|000001b0| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|000001c0| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|000001d0| 69 6f 6e 20 22 32 30 22 | 29 29 29 0a 20 20 20 20 |ion "20"|))). |
|000001e0| 28 65 72 72 6f 72 20 22 | 60 62 72 69 64 67 65 2e |(error "|`bridge.|
|000001f0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|00000200| 20 66 6f 72 20 45 6d 61 | 63 73 20 32 30 22 29 29 | for Ema|cs 20"))|
|00000210| 0a 0a 28 6f 72 20 28 62 | 6f 75 6e 64 70 20 27 63 |..(or (b|oundp 'c|
|00000220| 75 72 72 65 6e 74 2d 6c | 6f 61 64 2d 6c 69 73 74 |urrent-l|oad-list|
|00000230| 29 20 28 73 65 74 71 20 | 63 75 72 72 65 6e 74 2d |) (setq |current-|
|00000240| 6c 6f 61 64 2d 6c 69 73 | 74 20 6e 69 6c 29 29 0a |load-lis|t nil)).|
|00000250| 0a 0a 23 40 35 37 20 48 | 6f 6f 6b 20 63 61 6c 6c |..#@57 H|ook call|
|00000260| 65 64 20 77 68 65 6e 20 | 61 20 62 72 69 64 67 65 |ed when |a bridge|
|00000270| 20 69 73 20 69 6e 73 74 | 61 6c 6c 65 64 20 62 79 | is inst|alled by|
|00000280| 20 69 6e 73 74 61 6c 6c | 2d 68 6f 6f 6b 2e 1f 0a | install|-hook...|
|00000290| 28 64 65 66 76 61 72 20 | 62 72 69 64 67 65 2d 68 |(defvar |bridge-h|
|000002a0| 6f 6f 6b 20 6e 69 6c 20 | 28 23 24 20 2e 20 35 39 |ook nil |(#$ . 59|
|000002b0| 39 29 29 0a 23 40 31 36 | 35 20 2a 52 65 67 75 6c |9)).#@16|5 *Regul|
|000002c0| 61 72 20 65 78 70 72 65 | 73 73 69 6f 6e 20 74 6f |ar expre|ssion to|
|000002d0| 20 6d 61 74 63 68 20 74 | 68 65 20 73 74 61 72 74 | match t|he start|
|000002e0| 20 6f 66 20 61 20 70 72 | 6f 63 65 73 73 20 62 72 | of a pr|ocess br|
|000002f0| 69 64 67 65 20 69 6e 0a | 70 72 6f 63 65 73 73 20 |idge in.|process |
|00000300| 6f 75 74 70 75 74 2e 20 | 20 49 74 20 73 68 6f 75 |output. | It shou|
|00000310| 6c 64 20 62 65 20 66 6f | 6c 6c 6f 77 65 64 20 62 |ld be fo|llowed b|
|00000320| 79 20 61 20 62 75 66 66 | 65 72 20 6e 61 6d 65 2c |y a buff|er name,|
|00000330| 20 74 68 65 20 64 61 74 | 61 20 74 6f 0a 62 65 20 | the dat|a to.be |
|00000340| 73 65 6e 74 20 61 6e 64 | 20 61 20 62 72 69 64 67 |sent and| a bridg|
|00000350| 65 2d 65 6e 64 2d 72 65 | 67 65 78 70 2e 1f 0a 28 |e-end-re|gexp...(|
|00000360| 64 65 66 76 61 72 20 62 | 72 69 64 67 65 2d 73 74 |defvar b|ridge-st|
|00000370| 61 72 74 2d 72 65 67 65 | 78 70 20 22 1b 22 20 28 |art-rege|xp "." (|
|00000380| 23 24 20 2e 20 2d 36 39 | 38 29 29 0a 23 40 37 37 |#$ . -69|8)).#@77|
|00000390| 20 2a 52 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 | *Regula|r expres|
|000003a0| 73 69 6f 6e 20 74 6f 20 | 6d 61 74 63 68 20 74 68 |sion to |match th|
|000003b0| 65 20 65 6e 64 20 6f 66 | 20 61 20 70 72 6f 63 65 |e end of| a proce|
|000003c0| 73 73 20 62 72 69 64 67 | 65 20 69 6e 20 70 72 6f |ss bridg|e in pro|
|000003d0| 63 65 73 73 0a 6f 75 74 | 70 75 74 2e 1f 0a 28 64 |cess.out|put...(d|
|000003e0| 65 66 76 61 72 20 62 72 | 69 64 67 65 2d 65 6e 64 |efvar br|idge-end|
|000003f0| 2d 72 65 67 65 78 70 20 | 22 1d 22 20 28 23 24 20 |-regexp |"." (#$ |
|00000400| 2e 20 2d 39 31 33 29 29 | 0a 23 40 31 38 31 20 2a |. -913))|.#@181 *|
|00000410| 52 65 67 75 6c 61 72 20 | 65 78 70 72 65 73 73 69 |Regular |expressi|
|00000420| 6f 6e 20 66 6f 72 20 64 | 65 74 65 63 74 69 6e 67 |on for d|etecting|
|00000430| 20 61 20 70 72 6f 6d 70 | 74 2e 20 20 49 66 20 74 | a promp|t. If t|
|00000440| 68 65 72 65 20 69 73 20 | 61 0a 63 6f 6d 69 6e 74 |here is |a.comint|
|00000450| 2d 70 72 6f 6d 70 74 2d | 72 65 67 65 78 70 2c 20 |-prompt-|regexp, |
|00000460| 69 74 20 77 69 6c 6c 20 | 62 65 20 69 6e 69 74 69 |it will |be initi|
|00000470| 61 6c 69 7a 65 64 20 74 | 6f 20 74 68 61 74 2e 20 |alized t|o that. |
|00000480| 20 41 20 70 72 6f 6d 70 | 74 20 62 65 66 6f 72 65 | A promp|t before|
|00000490| 0a 61 20 62 72 69 64 67 | 65 2d 65 6e 64 2d 72 65 |.a bridg|e-end-re|
|000004a0| 67 65 78 70 20 77 69 6c | 6c 20 73 74 6f 70 20 74 |gexp wil|l stop t|
|000004b0| 68 65 20 70 72 6f 63 65 | 73 73 20 62 72 69 64 67 |he proce|ss bridg|
|000004c0| 65 2e 1f 0a 28 64 65 66 | 76 61 72 20 62 72 69 64 |e...(def|var brid|
|000004d0| 67 65 2d 70 72 6f 6d 70 | 74 2d 72 65 67 65 78 70 |ge-promp|t-regexp|
|000004e0| 20 6e 69 6c 20 28 23 24 | 20 2e 20 2d 31 30 33 39 | nil (#$| . -1039|
|000004f0| 29 29 0a 23 40 32 33 30 | 20 41 6c 69 73 74 20 6f |)).#@230| Alist o|
|00000500| 66 20 28 72 65 67 65 78 | 70 20 2e 20 68 61 6e 64 |f (regex|p . hand|
|00000510| 6c 65 72 29 20 66 6f 72 | 20 68 61 6e 64 6c 69 6e |ler) for| handlin|
|00000520| 67 20 70 72 6f 63 65 73 | 73 20 6f 75 74 70 75 74 |g proces|s output|
|00000530| 20 64 65 6c 69 6d 69 74 | 65 64 0a 62 79 20 62 72 | delimit|ed.by br|
|00000540| 69 64 67 65 2d 73 74 61 | 72 74 2d 72 65 67 65 78 |idge-sta|rt-regex|
|00000550| 70 20 61 6e 64 20 62 72 | 69 64 67 65 2d 65 6e 64 |p and br|idge-end|
|00000560| 2d 72 65 67 65 78 70 2e | 20 20 54 68 65 20 66 69 |-regexp.| The fi|
|00000570| 72 73 74 20 65 6e 74 72 | 79 20 6f 6e 20 74 68 65 |rst entr|y on the|
|00000580| 0a 6c 69 73 74 20 77 68 | 6f 73 65 20 72 65 67 65 |.list wh|ose rege|
|00000590| 78 70 20 6d 61 74 63 68 | 65 73 20 74 68 65 20 6f |xp match|es the o|
|000005a0| 75 74 70 75 74 20 77 69 | 6c 6c 20 62 65 20 63 61 |utput wi|ll be ca|
|000005b0| 6c 6c 65 64 20 6f 6e 20 | 74 68 65 20 70 72 6f 63 |lled on |the proc|
|000005c0| 65 73 73 20 61 6e 64 0a | 74 68 65 20 64 65 6c 69 |ess and.|the deli|
|000005d0| 6d 69 74 65 64 20 6f 75 | 74 70 75 74 2e 1f 0a 28 |mited ou|tput...(|
|000005e0| 64 65 66 76 61 72 20 62 | 72 69 64 67 65 2d 68 61 |defvar b|ridge-ha|
|000005f0| 6e 64 6c 65 72 73 20 6e | 69 6c 20 28 23 24 20 2e |ndlers n|il (#$ .|
|00000600| 20 31 32 37 33 29 29 0a | 23 40 36 36 20 2a 54 20 | 1273)).|#@66 *T |
|00000610| 74 6f 20 69 6e 73 65 72 | 74 20 62 72 69 64 67 65 |to inser|t bridge|
|00000620| 20 69 6e 70 75 74 20 69 | 6e 20 74 68 65 20 73 6f | input i|n the so|
|00000630| 75 72 63 65 20 62 75 66 | 66 65 72 20 6d 69 6e 75 |urce buf|fer minu|
|00000640| 73 20 64 65 6c 69 6d 69 | 74 65 72 73 2e 1f 0a 28 |s delimi|ters...(|
|00000650| 64 65 66 76 61 72 20 62 | 72 69 64 67 65 2d 73 6f |defvar b|ridge-so|
|00000660| 75 72 63 65 2d 69 6e 73 | 65 72 74 20 74 20 28 23 |urce-ins|ert t (#|
|00000670| 24 20 2e 20 2d 31 35 34 | 39 29 29 0a 23 40 39 37 |$ . -154|9)).#@97|
|00000680| 20 2a 54 20 66 6f 72 20 | 62 72 69 64 67 65 2d 73 | *T for |bridge-s|
|00000690| 65 6e 64 2d 68 61 6e 64 | 6c 65 72 20 74 6f 20 69 |end-hand|ler to i|
|000006a0| 6e 73 65 72 74 20 62 72 | 69 64 67 65 20 69 6e 70 |nsert br|idge inp|
|000006b0| 75 74 20 69 6e 74 6f 20 | 74 68 65 0a 64 65 73 74 |ut into |the.dest|
|000006c0| 69 6e 61 74 69 6f 6e 20 | 62 75 66 66 65 72 20 6d |ination |buffer m|
|000006d0| 69 6e 75 73 20 64 65 6c | 69 6d 69 74 65 72 73 2e |inus del|imiters.|
|000006e0| 1f 0a 28 64 65 66 76 61 | 72 20 62 72 69 64 67 65 |..(defva|r bridge|
|000006f0| 2d 64 65 73 74 69 6e 61 | 74 69 6f 6e 2d 69 6e 73 |-destina|tion-ins|
|00000700| 65 72 74 20 74 20 28 23 | 24 20 2e 20 2d 31 36 36 |ert t (#|$ . -166|
|00000710| 35 29 29 0a 23 40 31 34 | 36 20 2a 4c 6f 6e 67 20 |5)).#@14|6 *Long |
|00000720| 69 6e 70 75 74 73 20 73 | 65 6e 64 20 74 6f 20 63 |inputs s|end to c|
|00000730| 6f 6d 69 6e 74 20 70 72 | 6f 63 65 73 73 65 73 20 |omint pr|ocesses |
|00000740| 61 72 65 20 62 72 6f 6b | 65 6e 20 75 70 20 69 6e |are brok|en up in|
|00000750| 74 6f 20 63 68 75 6e 6b | 73 20 6f 66 0a 74 68 69 |to chunk|s of.thi|
|00000760| 73 20 73 69 7a 65 2e 20 | 20 49 66 20 79 6f 75 72 |s size. | If your|
|00000770| 20 70 72 6f 63 65 73 73 | 20 69 73 20 63 68 6f 6b | process| is chok|
|00000780| 69 6e 67 20 6f 6e 20 62 | 69 67 20 69 6e 70 75 74 |ing on b|ig input|
|00000790| 73 2c 20 74 72 79 20 6c | 6f 77 65 72 69 6e 67 20 |s, try l|owering |
|000007a0| 74 68 65 0a 76 61 6c 75 | 65 2e 1f 0a 28 64 65 66 |the.valu|e...(def|
|000007b0| 76 61 72 20 62 72 69 64 | 67 65 2d 63 68 75 6e 6b |var brid|ge-chunk|
|000007c0| 2d 73 69 7a 65 20 35 31 | 32 20 28 23 24 20 2e 20 |-size 51|2 (#$ . |
|000007d0| 2d 31 38 31 38 29 29 0a | 23 40 34 32 20 4f 6c 64 |-1818)).|#@42 Old|
|000007e0| 20 66 69 6c 74 65 72 20 | 66 6f 72 20 61 20 62 72 | filter |for a br|
|000007f0| 69 64 67 65 64 20 70 72 | 6f 63 65 73 73 20 62 75 |idged pr|ocess bu|
|00000800| 66 66 65 72 2e 1f 0a 28 | 64 65 66 76 61 72 20 62 |ffer...(|defvar b|
|00000810| 72 69 64 67 65 2d 6f 6c | 64 2d 66 69 6c 74 65 72 |ridge-ol|d-filter|
|00000820| 20 6e 69 6c 20 28 23 24 | 20 2e 20 32 30 31 33 29 | nil (#$| . 2013)|
|00000830| 29 0a 23 40 34 33 20 54 | 68 65 20 63 75 72 72 65 |).#@43 T|he curre|
|00000840| 6e 74 20 6f 75 74 70 75 | 74 20 69 6e 20 74 68 65 |nt outpu|t in the|
|00000850| 20 70 72 6f 63 65 73 73 | 20 62 72 69 64 67 65 2e | process| bridge.|
|00000860| 1f 0a 28 64 65 66 76 61 | 72 20 62 72 69 64 67 65 |..(defva|r bridge|
|00000870| 2d 73 74 72 69 6e 67 20 | 6e 69 6c 20 28 23 24 20 |-string |nil (#$ |
|00000880| 2e 20 32 31 30 33 29 29 | 0a 23 40 38 39 20 54 68 |. 2103))|.#@89 Th|
|00000890| 65 20 63 75 72 72 65 6e | 74 20 68 61 6e 64 6c 65 |e curren|t handle|
|000008a0| 72 20 66 75 6e 63 74 69 | 6f 6e 2c 20 69 66 20 61 |r functi|on, if a|
|000008b0| 6e 79 2c 20 74 68 61 74 | 20 62 72 69 64 67 65 20 |ny, that| bridge |
|000008c0| 70 61 73 73 65 73 20 73 | 74 72 69 6e 67 73 20 6f |passes s|trings o|
|000008d0| 6e 20 74 6f 2c 0a 6f 72 | 20 6e 69 6c 20 69 66 20 |n to,.or| nil if |
|000008e0| 6e 6f 6e 65 2e 1f 0a 28 | 64 65 66 76 61 72 20 62 |none...(|defvar b|
|000008f0| 72 69 64 67 65 2d 69 6e | 2d 70 72 6f 67 72 65 73 |ridge-in|-progres|
|00000900| 73 20 6e 69 6c 20 28 23 | 24 20 2e 20 32 31 39 30 |s nil (#|$ . 2190|
|00000910| 29 29 0a 23 40 31 37 35 | 20 54 68 65 20 62 75 66 |)).#@175| The buf|
|00000920| 66 65 72 20 74 68 61 74 | 20 74 68 65 20 64 65 66 |fer that| the def|
|00000930| 61 75 6c 74 20 62 72 69 | 64 67 65 2d 68 61 6e 64 |ault bri|dge-hand|
|00000940| 6c 65 72 20 28 62 72 69 | 64 67 65 2d 73 65 6e 64 |ler (bri|dge-send|
|00000950| 2d 68 61 6e 64 6c 65 72 | 29 20 69 73 0a 63 75 72 |-handler|) is.cur|
|00000960| 72 65 6e 74 6c 79 20 73 | 65 6e 64 69 6e 67 20 74 |rently s|ending t|
|00000970| 6f 2c 20 6f 72 20 6e 69 | 6c 20 69 66 20 69 74 20 |o, or ni|l if it |
|00000980| 68 61 73 6e 27 74 20 73 | 74 61 72 74 65 64 20 79 |hasn't s|tarted y|
|00000990| 65 74 2e 20 20 59 6f 75 | 72 20 68 61 6e 64 6c 65 |et. You|r handle|
|000009a0| 72 0a 66 75 6e 63 74 69 | 6f 6e 20 63 61 6e 20 75 |r.functi|on can u|
|000009b0| 73 65 20 74 68 69 73 20 | 76 61 72 69 61 62 6c 65 |se this |variable|
|000009c0| 20 61 6c 73 6f 2e 1f 0a | 28 64 65 66 76 61 72 20 | also...|(defvar |
|000009d0| 62 72 69 64 67 65 2d 73 | 65 6e 64 2d 74 6f 2d 62 |bridge-s|end-to-b|
|000009e0| 75 66 66 65 72 20 6e 69 | 6c 20 28 23 24 20 2e 20 |uffer ni|l (#$ . |
|000009f0| 32 33 32 39 29 29 0a 23 | 40 31 39 32 20 4c 61 73 |2329)).#|@192 Las|
|00000a00| 74 20 74 68 69 6e 67 20 | 74 68 61 74 20 62 72 6f |t thing |that bro|
|00000a10| 6b 65 20 74 68 65 20 62 | 72 69 64 67 65 20 68 61 |ke the b|ridge ha|
|00000a20| 6e 64 6c 65 72 2e 20 20 | 46 69 72 73 74 20 69 74 |ndler. |First it|
|00000a30| 65 6d 20 69 73 20 66 75 | 6e 63 74 69 6f 6e 20 63 |em is fu|nction c|
|00000a40| 61 6c 6c 0a 28 65 76 61 | 6c 27 61 62 6c 65 29 3b |all.(eva|l'able);|
|00000a50| 20 6c 61 73 74 20 69 74 | 65 6d 20 69 73 20 65 72 | last it|em is er|
|00000a60| 72 6f 72 20 63 6f 6e 64 | 69 74 69 6f 6e 20 77 68 |ror cond|ition wh|
|00000a70| 69 63 68 20 72 65 73 75 | 6c 74 65 64 2e 20 20 54 |ich resu|lted. T|
|00000a80| 68 69 73 20 69 73 20 70 | 72 6f 76 69 64 65 64 0a |his is p|rovided.|
|00000a90| 74 6f 20 68 65 6c 70 20 | 68 61 6e 64 6c 65 72 2d |to help |handler-|
|00000aa0| 77 72 69 74 65 72 73 20 | 69 6e 20 74 68 65 69 72 |writers |in their|
|00000ab0| 20 64 65 62 75 67 67 69 | 6e 67 2e 1f 0a 28 64 65 | debuggi|ng...(de|
|00000ac0| 66 76 61 72 20 62 72 69 | 64 67 65 2d 6c 61 73 74 |fvar bri|dge-last|
|00000ad0| 2d 66 61 69 6c 75 72 65 | 20 6e 69 6c 20 28 23 24 |-failure| nil (#$|
|00000ae0| 20 2e 20 32 35 35 37 29 | 29 0a 23 40 34 38 20 49 | . 2557)|).#@48 I|
|00000af0| 6e 73 65 72 74 20 70 72 | 6f 63 65 73 73 20 4f 55 |nsert pr|ocess OU|
|00000b00| 54 50 55 54 20 69 6e 74 | 6f 20 74 68 65 20 63 75 |TPUT int|o the cu|
|00000b10| 72 72 65 6e 74 20 62 75 | 66 66 65 72 2e 1f 0a 28 |rrent bu|ffer...(|
|00000b20| 64 65 66 61 6c 69 61 73 | 20 27 62 72 69 64 67 65 |defalias| 'bridge|
|00000b30| 2d 69 6e 73 65 72 74 20 | 23 5b 28 6f 75 74 70 75 |-insert |#[(outpu|
|00000b40| 74 29 20 22 08 ad d9 70 | 19 c2 09 21 1b c4 0b 21 |t) "...p|...!...!|
|00000b50| 1d c6 20 1e 07 c8 1e 09 | ca 0e 07 21 09 61 ab 87 |.. .....|...!.a..|
|00000b60| 60 0d 55 16 09 aa 85 cb | 09 21 16 07 8a 0d 62 88 |`.U.....|.!....b.|
|00000b70| 08 63 88 0d 60 c8 93 88 | 29 0e 07 ad a2 0e 09 ab |.c..`...|).......|
|00000b80| 83 0d 62 88 cc 60 0e 07 | 5c 22 3f ad 93 c6 20 1e |..b..`..|\"?... .|
|00000b90| 0d 8a ce 0e 07 21 88 cf | d0 21 88 ce 0e 0d 21 2a |.....!..|.!....!*|
|00000ba0| 2d 87 22 20 5b 6f 75 74 | 70 75 74 20 62 75 66 66 |-." [out|put buff|
|00000bb0| 65 72 20 67 65 74 2d 62 | 75 66 66 65 72 2d 70 72 |er get-b|uffer-pr|
|00000bc0| 6f 63 65 73 73 20 70 72 | 6f 63 65 73 73 20 70 72 |ocess pr|ocess pr|
|00000bd0| 6f 63 65 73 73 2d 6d 61 | 72 6b 20 6d 61 72 6b 20 |ocess-ma|rk mark |
|00000be0| 73 65 6c 65 63 74 65 64 | 2d 77 69 6e 64 6f 77 20 |selected|-window |
|00000bf0| 77 69 6e 64 6f 77 20 6e | 69 6c 20 61 74 2d 65 6e |window n|il at-en|
|00000c00| 64 20 77 69 6e 64 6f 77 | 2d 62 75 66 66 65 72 20 |d window|-buffer |
|00000c10| 67 65 74 2d 62 75 66 66 | 65 72 2d 77 69 6e 64 6f |get-buff|er-windo|
|00000c20| 77 20 70 6f 73 2d 76 69 | 73 69 62 6c 65 2d 69 6e |w pos-vi|sible-in|
|00000c30| 2d 77 69 6e 64 6f 77 2d | 70 20 6f 72 69 67 69 6e |-window-|p origin|
|00000c40| 61 6c 20 73 65 6c 65 63 | 74 2d 77 69 6e 64 6f 77 |al selec|t-window|
|00000c50| 20 72 65 63 65 6e 74 65 | 72 20 28 63 65 6e 74 65 | recente|r (cente|
|00000c60| 72 29 5d 20 33 20 28 23 | 24 20 2e 20 32 37 39 39 |r)] 3 (#|$ . 2799|
|00000c70| 29 5d 29 0a 23 40 31 37 | 39 20 46 75 6e 63 61 6c |)]).#@17|9 Funcal|
|00000c80| 6c 20 48 41 4e 44 4c 45 | 52 20 6f 6e 20 50 52 4f |l HANDLE|R on PRO|
|00000c90| 43 2c 20 53 54 52 49 4e | 47 20 63 61 72 65 66 75 |C, STRIN|G carefu|
|00000ca0| 6c 6c 79 2e 20 20 45 72 | 72 6f 72 20 69 73 20 63 |lly. Er|ror is c|
|00000cb0| 61 75 67 68 74 20 69 66 | 20 68 61 70 70 65 6e 73 |aught if| happens|
|00000cc0| 2c 0a 61 6e 64 20 75 73 | 65 72 20 69 73 20 73 69 |,.and us|er is si|
|00000cd0| 67 6e 61 6c 65 64 2e 20 | 20 53 74 61 74 65 20 69 |gnaled. | State i|
|00000ce0| 73 20 70 75 74 20 69 6e | 20 62 72 69 64 67 65 2d |s put in| bridge-|
|00000cf0| 6c 61 73 74 2d 66 61 69 | 6c 75 72 65 2e 20 20 52 |last-fai|lure. R|
|00000d00| 65 74 75 72 6e 73 20 74 | 20 69 66 0a 68 61 6e 64 |eturns t| if.hand|
|00000d10| 6c 65 72 20 65 78 65 63 | 75 74 65 64 20 77 69 74 |ler exec|uted wit|
|00000d20| 68 6f 75 74 20 65 72 72 | 6f 72 2e 1f 0a 28 64 65 |hout err|or...(de|
|00000d30| 66 61 6c 69 61 73 20 27 | 62 72 69 64 67 65 2d 63 |falias '|bridge-c|
|00000d40| 61 6c 6c 2d 68 61 6e 64 | 6c 65 72 20 23 5b 28 68 |all-hand|ler #[(h|
|00000d50| 61 6e 64 6c 65 72 20 70 | 72 6f 63 20 73 74 72 69 |andler p|roc stri|
|00000d60| 6e 67 29 20 22 c0 89 19 | 1a c3 c4 c5 8f 88 09 2a |ng) "...|.......*|
|00000d70| 3f 87 22 20 5b 6e 69 6c | 20 66 61 69 6c 65 64 20 |?." [nil| failed |
|00000d80| 69 6e 68 69 62 69 74 2d | 71 75 69 74 20 65 72 72 |inhibit-|quit err|
|00000d90| 20 28 66 75 6e 63 61 6c | 6c 20 68 61 6e 64 6c 65 | (funcal|l handle|
|00000da0| 72 20 70 72 6f 63 20 73 | 74 72 69 6e 67 29 20 28 |r proc s|tring) (|
|00000db0| 28 65 72 72 6f 72 20 28 | 62 79 74 65 2d 63 6f 64 |(error (|byte-cod|
|00000dc0| 65 20 22 c0 20 88 c1 12 | c3 c4 0d 0e 06 23 88 c7 |e ". ...|.....#..|
|00000dd0| c8 0d 44 c8 0e 09 44 0e | 5c 6e 46 cb 0e 06 45 16 |..D...D.|\nF...E.|
|00000de0| 0c c0 87 22 20 5b 64 69 | 6e 67 20 74 20 66 61 69 |..." [di|ng t fai|
|00000df0| 6c 65 64 20 6d 65 73 73 | 61 67 65 20 22 62 72 69 |led mess|age "bri|
|00000e00| 64 67 65 2d 68 61 6e 64 | 6c 65 72 20 5c 22 25 73 |dge-hand|ler \"%s|
|00000e10| 5c 22 20 66 61 69 6c 65 | 64 20 25 73 20 28 73 65 |\" faile|d %s (se|
|00000e20| 65 20 62 72 69 64 67 65 | 2d 6c 61 73 74 2d 66 61 |e bridge|-last-fa|
|00000e30| 69 6c 75 72 65 29 22 20 | 68 61 6e 64 6c 65 72 20 |ilure)" |handler |
|00000e40| 65 72 72 20 66 75 6e 63 | 61 6c 6c 20 71 75 6f 74 |err func|all quot|
|00000e50| 65 20 70 72 6f 63 20 73 | 74 72 69 6e 67 20 22 43 |e proc s|tring "C|
|00000e60| 61 75 73 65 64 3a 20 22 | 20 62 72 69 64 67 65 2d |aused: "| bridge-|
|00000e70| 6c 61 73 74 2d 66 61 69 | 6c 75 72 65 5d 20 34 29 |last-fai|lure] 4)|
|00000e80| 29 29 5d 20 33 20 28 23 | 24 20 2e 20 33 31 39 34 |))] 3 (#|$ . 3194|
|00000e90| 29 5d 29 0a 23 40 33 31 | 30 20 53 65 6e 64 20 50 |)]).#@31|0 Send P|
|00000ea0| 52 4f 43 45 53 53 20 49 | 4e 50 55 54 20 74 6f 20 |ROCESS I|NPUT to |
|00000eb0| 74 68 65 20 62 75 66 66 | 65 72 20 6e 61 6d 65 20 |the buff|er name |
|00000ec0| 66 6f 75 6e 64 20 61 74 | 20 74 68 65 20 73 74 61 |found at| the sta|
|00000ed0| 72 74 20 6f 66 20 74 68 | 65 0a 69 6e 70 75 74 2e |rt of th|e.input.|
|00000ee0| 20 20 54 68 65 20 69 6e | 70 75 74 20 61 66 74 65 | The in|put afte|
|00000ef0| 72 20 74 68 65 20 62 75 | 66 66 65 72 20 6e 61 6d |r the bu|ffer nam|
|00000f00| 65 20 69 73 20 73 65 6e | 74 20 74 6f 20 74 68 65 |e is sen|t to the|
|00000f10| 20 62 75 66 66 65 72 27 | 73 0a 70 72 6f 63 65 73 | buffer'|s.proces|
|00000f20| 73 20 69 66 20 69 74 20 | 68 61 73 20 6f 6e 65 2e |s if it |has one.|
|00000f30| 20 20 49 66 20 62 72 69 | 64 67 65 2d 64 65 73 74 | If bri|dge-dest|
|00000f40| 69 6e 61 74 69 6f 6e 2d | 69 6e 73 65 72 74 20 69 |ination-|insert i|
|00000f50| 73 20 54 2c 20 74 68 65 | 20 69 6e 70 75 74 0a 77 |s T, the| input.w|
|00000f60| 69 6c 6c 20 62 65 20 69 | 6e 73 65 72 74 65 64 20 |ill be i|nserted |
|00000f70| 69 6e 74 6f 20 74 68 65 | 20 62 75 66 66 65 72 2e |into the| buffer.|
|00000f80| 20 20 49 66 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 | If it |does not|
|00000f90| 20 68 61 76 65 20 61 20 | 70 72 6f 63 65 73 73 2c | have a |process,|
|00000fa0| 20 69 74 0a 77 69 6c 6c | 20 62 65 20 69 6e 73 65 | it.will| be inse|
|00000fb0| 72 74 65 64 20 61 74 20 | 74 68 65 20 65 6e 64 20 |rted at |the end |
|00000fc0| 6f 66 20 74 68 65 20 62 | 75 66 66 65 72 2e 1f 0a |of the b|uffer...|
|00000fd0| 28 64 65 66 61 6c 69 61 | 73 20 27 62 72 69 64 67 |(defalia|s 'bridg|
|00000fe0| 65 2d 73 65 6e 64 2d 68 | 61 6e 64 6c 65 72 20 23 |e-send-h|andler #|
|00000ff0| 5b 28 70 72 6f 63 65 73 | 73 20 69 6e 70 75 74 29 |[(proces|s input)|
|00001000| 20 22 08 ac 84 c1 89 12 | 87 c1 89 89 89 1b 1c 1d | "......|........|
|00001010| 1e 06 5c 6e ac a0 c7 08 | 21 16 06 c8 c9 c7 08 21 |..\n....|!......!|
|00001020| 40 5c 22 15 ca 0d 21 14 | cb 0c 21 13 08 0e 06 41 |@\"...!.|..!....A|
|00001030| c1 4f 10 0c 12 aa 8a 5c | 6e 15 ca 0d 21 14 cb 0c |.O.....\|n...!...|
|00001040| 21 13 0c ab a6 70 1e 0c | 0e 0d ab 95 ce 8e 0c 71 |!....p..|.......q|
|00001050| 88 0b ab 86 cf 08 21 88 | aa 86 64 62 88 08 63 88 |......!.|..db..c.|
|00001060| 29 0b ad 84 d0 0b 08 5c | 22 29 aa 84 d1 d2 0d 5c |)......\|").....\|
|00001070| 22 2c 87 22 20 5b 69 6e | 70 75 74 20 6e 69 6c 20 |",." [in|put nil |
|00001080| 62 72 69 64 67 65 2d 73 | 65 6e 64 2d 74 6f 2d 62 |bridge-s|end-to-b|
|00001090| 75 66 66 65 72 20 74 6f | 20 64 65 73 74 20 62 75 |uffer to| dest bu|
|000010a0| 66 66 65 72 2d 6e 61 6d | 65 20 62 75 66 66 65 72 |ffer-nam|e buffer|
|000010b0| 2d 61 6e 64 2d 73 74 61 | 72 74 20 72 65 61 64 2d |-and-sta|rt read-|
|000010c0| 66 72 6f 6d 2d 73 74 72 | 69 6e 67 20 66 6f 72 6d |from-str|ing form|
|000010d0| 61 74 20 22 25 73 22 20 | 67 65 74 2d 62 75 66 66 |at "%s" |get-buff|
|000010e0| 65 72 20 67 65 74 2d 62 | 75 66 66 65 72 2d 70 72 |er get-b|uffer-pr|
|000010f0| 6f 63 65 73 73 20 62 75 | 66 66 65 72 20 62 72 69 |ocess bu|ffer bri|
|00001100| 64 67 65 2d 64 65 73 74 | 69 6e 61 74 69 6f 6e 2d |dge-dest|ination-|
|00001110| 69 6e 73 65 72 74 20 28 | 28 73 65 74 2d 62 75 66 |insert (|(set-buf|
|00001120| 66 65 72 20 62 75 66 66 | 65 72 29 29 20 62 72 69 |fer buff|er)) bri|
|00001130| 64 67 65 2d 69 6e 73 65 | 72 74 20 70 72 6f 63 65 |dge-inse|rt proce|
|00001140| 73 73 2d 73 65 6e 64 2d | 73 74 72 69 6e 67 20 65 |ss-send-|string e|
|00001150| 72 72 6f 72 20 22 25 73 | 20 69 73 20 6e 6f 74 20 |rror "%s| is not |
|00001160| 61 20 62 75 66 66 65 72 | 22 5d 20 34 20 28 23 24 |a buffer|"] 4 (#$|
|00001170| 20 2e 20 33 37 33 38 29 | 5d 29 0a 23 40 34 37 34 | . 3738)|]).#@474|
|00001180| 20 47 69 76 65 6e 20 50 | 52 4f 43 45 53 53 20 61 | Given P|ROCESS a|
|00001190| 6e 64 20 73 6f 6d 65 20 | 4f 55 54 50 55 54 2c 20 |nd some |OUTPUT, |
|000011a0| 63 68 65 63 6b 20 66 6f | 72 20 74 68 65 20 70 72 |check fo|r the pr|
|000011b0| 65 73 65 6e 63 65 20 6f | 66 0a 62 72 69 64 67 65 |esence o|f.bridge|
|000011c0| 2d 73 74 61 72 74 2d 72 | 65 67 65 78 70 2e 20 20 |-start-r|egexp. |
|000011d0| 45 76 65 72 79 74 68 69 | 6e 67 20 70 72 69 6f 72 |Everythi|ng prior|
|000011e0| 20 74 6f 20 74 68 69 73 | 20 77 69 6c 6c 20 62 65 | to this| will be|
|000011f0| 20 70 61 73 73 65 64 20 | 74 6f 20 74 68 65 0a 6e | passed |to the.n|
|00001200| 6f 72 6d 61 6c 20 66 69 | 6c 74 65 72 20 66 75 6e |ormal fi|lter fun|
|00001210| 63 74 69 6f 6e 20 6f 72 | 20 69 6e 73 65 72 74 65 |ction or| inserte|
|00001220| 64 20 69 6e 20 74 68 65 | 20 62 75 66 66 65 72 20 |d in the| buffer |
|00001230| 69 66 20 69 74 20 69 73 | 20 6e 69 6c 2e 20 20 54 |if it is| nil. T|
|00001240| 68 65 0a 6f 75 74 70 75 | 74 20 75 70 20 74 6f 20 |he.outpu|t up to |
|00001250| 62 72 69 64 67 65 2d 65 | 6e 64 2d 72 65 67 65 78 |bridge-e|nd-regex|
|00001260| 70 20 77 69 6c 6c 20 62 | 65 20 73 65 6e 74 20 74 |p will b|e sent t|
|00001270| 6f 20 74 68 65 20 66 69 | 72 73 74 20 68 61 6e 64 |o the fi|rst hand|
|00001280| 6c 65 72 20 6f 6e 0a 62 | 72 69 64 67 65 2d 68 61 |ler on.b|ridge-ha|
|00001290| 6e 64 6c 65 72 73 20 74 | 68 61 74 20 6d 61 74 63 |ndlers t|hat matc|
|000012a0| 68 65 73 20 74 68 65 20 | 73 74 72 69 6e 67 2e 20 |hes the |string. |
|000012b0| 20 49 66 20 6e 6f 20 68 | 61 6e 64 6c 65 72 73 20 | If no h|andlers |
|000012c0| 6d 61 74 63 68 2c 20 74 | 68 65 0a 69 6e 70 75 74 |match, t|he.input|
|000012d0| 20 77 69 6c 6c 20 62 65 | 20 73 65 6e 74 20 74 6f | will be| sent to|
|000012e0| 20 62 72 69 64 67 65 2d | 73 65 6e 64 2d 68 61 6e | bridge-|send-han|
|000012f0| 64 6c 65 72 2e 20 20 49 | 66 20 62 72 69 64 67 65 |dler. I|f bridge|
|00001300| 2d 70 72 6f 6d 70 74 2d | 72 65 67 65 78 70 20 69 |-prompt-|regexp i|
|00001310| 73 0a 65 6e 63 6f 75 6e | 74 65 72 65 64 20 62 65 |s.encoun|tered be|
|00001320| 66 6f 72 65 20 74 68 65 | 20 62 72 69 64 67 65 2d |fore the| bridge-|
|00001330| 65 6e 64 2d 72 65 67 65 | 78 70 2c 20 74 68 65 20 |end-rege|xp, the |
|00001340| 62 72 69 64 67 65 20 77 | 69 6c 6c 20 62 65 20 63 |bridge w|ill be c|
|00001350| 61 6e 63 65 6c 6c 65 64 | 2e 1f 0a 28 64 65 66 61 |ancelled|...(defa|
|00001360| 6c 69 61 73 20 27 62 72 | 69 64 67 65 2d 66 69 6c |lias 'br|idge-fil|
|00001370| 74 65 72 20 23 5b 28 70 | 72 6f 63 65 73 73 20 6f |ter #[(p|rocess o|
|00001380| 75 74 70 75 74 29 20 22 | c0 c1 20 70 c2 0b 21 c0 |utput) "|.. p..!.|
|00001390| c4 89 c5 89 89 89 1e 06 | 1e 07 1e 08 1e 09 1e 5c |........|.......\|
|000013a0| 6e 1e 0b 1e 0c 1a 1e 0d | 19 1e 0e 5c 6e 71 88 0e |n.......|...\nq..|
|000013b0| 0f 16 09 c5 8e 0e 5c 6e | 0e 10 47 57 83 7f 01 0e |......\n|..GW....|
|000013c0| 0f ab 88 0e 0b 16 07 0e | 0b aa 93 d1 0e 12 0e 10 |........|........|
|000013d0| 0e 0b 23 ab 88 c4 95 16 | 07 c4 94 aa 81 c5 89 16 |..#.....|........|
|000013e0| 08 ad 94 d1 0e 13 0e 10 | 0e 07 23 89 1e 14 ab 84 |........|..#.....|
|000013f0| c4 95 16 5c 6e 0e 14 29 | 89 16 06 ac 8a 0e 10 47 |...\n..)|.......G|
|00001400| 16 5c 6e 0e 10 47 16 06 | 0e 08 ab a3 d1 0e 15 0e |.\n..G..|........|
|00001410| 10 0e 07 23 89 1e 16 ab | 95 c4 95 0e 06 58 ab 8e |...#....|.....X..|
|00001420| c5 16 08 0e 0b 16 06 c4 | 95 16 5c 6e c5 16 0f 29 |........|..\n...)|
|00001430| 0e 0b 0e 08 ae 82 0e 5c | 6e 55 ac bf 0e 10 0e 0b |.......\|nU......|
|00001440| 0e 08 ae 82 0e 5c 6e 4f | 1e 17 0e 18 ab a5 0e 18 |.....\nO|........|
|00001450| 1e 19 da 09 21 88 0e 19 | 0b 0e 17 5c 22 88 db 0b |....!...|...\"...|
|00001460| 21 89 1e 1c dd 61 ac 89 | 0e 1c 16 18 de 0b dd 5c |!....a..|.......\|
|00001470| 22 88 2a aa 88 5c 6e 71 | 88 df 0e 17 21 88 29 0e |".*..\nq|....!.).|
|00001480| 08 ab c5 0e 0f ac c1 0e | 20 1e 21 0e 21 ab ad 0e |........| .!.!...|
|00001490| 09 ac a9 0e 21 40 1e 5c | 22 d1 0e 5c 22 40 0e 10 |....!@.\|"..\"@..|
|000014a0| 0e 07 23 89 1e 23 ab 8e | 0e 23 0e 06 57 ab 87 0e |..#..#..|.#..W...|
|000014b0| 5c 22 41 16 09 aa 85 0e | 21 41 16 21 2a aa 4f 0e |\"A.....|!A.!*.O.|
|000014c0| 09 ac 83 e4 16 09 0e 09 | 16 0f 29 0e 09 ab bf c0 |........|..).....|
|000014d0| 1e 25 0e 07 0e 06 55 ac | 9c 0e 10 0e 07 0e 06 4f |.%....U.|.......O|
|000014e0| 1e 26 0e 27 ab 85 df 0e | 26 21 88 e8 0e 09 0b 0e |.&.'....|&!......|
|000014f0| 26 23 16 25 29 0e 25 ab | 87 0e 06 0e 5c 6e 55 ac |&#.%).%.|....\nU.|
|00001500| 8d e8 0e 09 0b c5 23 88 | c5 16 09 c5 16 0f 29 0e |......#.|......).|
|00001510| 5c 6e 16 0b 82 2b 00 29 | 0e 0d 71 88 da 09 21 2e |\n...+.)|..q...!.|
|00001520| 0b 87 22 20 5b 74 20 6d | 61 74 63 68 2d 64 61 74 |.." [t m|atch-dat|
|00001530| 61 20 70 72 6f 63 65 73 | 73 2d 62 75 66 66 65 72 |a proces|s-buffer|
|00001540| 20 70 72 6f 63 65 73 73 | 20 30 20 6e 69 6c 20 62 | process| 0 nil b|
|00001550| 2d 65 6e 64 20 62 2d 73 | 74 61 72 74 2d 65 6e 64 |-end b-s|tart-end|
|00001560| 20 62 2d 73 74 61 72 74 | 20 66 75 6e 63 74 69 6f | b-start| functio|
|00001570| 6e 20 65 6e 64 20 73 74 | 61 72 74 20 63 61 73 65 |n end st|art case|
|00001580| 2d 66 6f 6c 64 2d 73 65 | 61 72 63 68 20 62 75 66 |-fold-se|arch buf|
|00001590| 66 65 72 20 69 6e 68 69 | 62 69 74 2d 71 75 69 74 |fer inhi|bit-quit|
|000015a0| 20 62 72 69 64 67 65 2d | 69 6e 2d 70 72 6f 67 72 | bridge-|in-progr|
|000015b0| 65 73 73 20 6f 75 74 70 | 75 74 20 73 74 72 69 6e |ess outp|ut strin|
|000015c0| 67 2d 6d 61 74 63 68 20 | 62 72 69 64 67 65 2d 73 |g-match |bridge-s|
|000015d0| 74 61 72 74 2d 72 65 67 | 65 78 70 20 62 72 69 64 |tart-reg|exp brid|
|000015e0| 67 65 2d 65 6e 64 2d 72 | 65 67 65 78 70 20 65 6e |ge-end-r|egexp en|
|000015f0| 64 2d 73 65 65 6e 20 62 | 72 69 64 67 65 2d 70 72 |d-seen b|ridge-pr|
|00001600| 6f 6d 70 74 2d 72 65 67 | 65 78 70 20 70 72 6f 6d |ompt-reg|exp prom|
|00001610| 70 74 20 70 61 73 73 2d | 6f 6e 20 62 72 69 64 67 |pt pass-|on bridg|
|00001620| 65 2d 6f 6c 64 2d 66 69 | 6c 74 65 72 20 6f 6c 64 |e-old-fi|lter old|
|00001630| 20 73 74 6f 72 65 2d 6d | 61 74 63 68 2d 64 61 74 | store-m|atch-dat|
|00001640| 61 20 70 72 6f 63 65 73 | 73 2d 66 69 6c 74 65 72 |a proces|s-filter|
|00001650| 20 6e 65 77 20 62 72 69 | 64 67 65 2d 66 69 6c 74 | new bri|dge-filt|
|00001660| 65 72 20 73 65 74 2d 70 | 72 6f 63 65 73 73 2d 66 |er set-p|rocess-f|
|00001670| 69 6c 74 65 72 20 62 72 | 69 64 67 65 2d 69 6e 73 |ilter br|idge-ins|
|00001680| 65 72 74 20 62 72 69 64 | 67 65 2d 68 61 6e 64 6c |ert brid|ge-handl|
|00001690| 65 72 73 20 68 61 6e 64 | 6c 65 72 73 20 68 61 6e |ers hand|lers han|
|000016a0| 64 6c 65 72 20 6d 20 62 | 72 69 64 67 65 2d 73 65 |dler m b|ridge-se|
|000016b0| 6e 64 2d 68 61 6e 64 6c | 65 72 20 6f 6b 20 73 65 |nd-handl|er ok se|
|000016c0| 6e 64 20 62 72 69 64 67 | 65 2d 73 6f 75 72 63 65 |nd bridg|e-source|
|000016d0| 2d 69 6e 73 65 72 74 20 | 62 72 69 64 67 65 2d 63 |-insert |bridge-c|
|000016e0| 61 6c 6c 2d 68 61 6e 64 | 6c 65 72 5d 20 31 32 20 |all-hand|ler] 12 |
|000016f0| 28 23 24 20 2e 20 34 34 | 38 31 29 5d 29 0a 23 40 |(#$ . 44|81)]).#@|
|00001700| 34 38 20 53 65 74 20 75 | 70 20 61 20 70 72 6f 63 |48 Set u|p a proc|
|00001710| 65 73 73 20 62 72 69 64 | 67 65 20 69 6e 20 74 68 |ess brid|ge in th|
|00001720| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00001730| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 69 6e |...(defa|lias 'in|
|00001740| 73 74 61 6c 6c 2d 62 72 | 69 64 67 65 20 23 5b 6e |stall-br|idge #[n|
|00001750| 69 6c 20 22 c0 70 21 ac | 87 c1 c2 c3 70 21 5c 22 |il ".p!.|....p!\"|
|00001760| 87 c4 c5 21 88 c4 c6 21 | 88 c4 c7 21 88 c4 c8 21 |...!...!|...!...!|
|00001770| 88 c4 c9 21 88 c4 ca 21 | 88 c4 cb 21 88 c4 cc 21 |...!...!|...!...!|
|00001780| 88 c4 cd 21 88 c4 ce 21 | 88 c4 cf 21 88 d0 16 0d |...!...!|...!....|
|00001790| d0 16 0e d0 16 0f d1 d2 | 21 ab 84 0e 12 16 07 c0 |........|!.......|
|000017a0| 70 21 89 1e 13 ab 96 d4 | 0e 13 21 d5 61 ac 95 d4 |p!......|..!.a...|
|000017b0| 0e 13 21 16 0c d6 0e 13 | d5 5c 22 88 aa 87 c1 c2 |..!.....|.\".....|
|000017c0| c3 70 21 5c 22 88 29 d7 | d8 21 88 d9 da 21 87 22 |.p!\".).|.!...!."|
|000017d0| 20 5b 67 65 74 2d 62 75 | 66 66 65 72 2d 70 72 6f | [get-bu|ffer-pro|
|000017e0| 63 65 73 73 20 65 72 72 | 6f 72 20 22 25 73 20 64 |cess err|or "%s d|
|000017f0| 6f 65 73 20 6e 6f 74 20 | 68 61 76 65 20 61 20 70 |oes not |have a p|
|00001800| 72 6f 63 65 73 73 22 20 | 62 75 66 66 65 72 2d 6e |rocess" |buffer-n|
|00001810| 61 6d 65 20 6d 61 6b 65 | 2d 6c 6f 63 61 6c 2d 76 |ame make|-local-v|
|00001820| 61 72 69 61 62 6c 65 20 | 62 72 69 64 67 65 2d 73 |ariable |bridge-s|
|00001830| 74 61 72 74 2d 72 65 67 | 65 78 70 20 62 72 69 64 |tart-reg|exp brid|
|00001840| 67 65 2d 65 6e 64 2d 72 | 65 67 65 78 70 20 62 72 |ge-end-r|egexp br|
|00001850| 69 64 67 65 2d 70 72 6f | 6d 70 74 2d 72 65 67 65 |idge-pro|mpt-rege|
|00001860| 78 70 20 62 72 69 64 67 | 65 2d 68 61 6e 64 6c 65 |xp bridg|e-handle|
|00001870| 72 73 20 62 72 69 64 67 | 65 2d 73 6f 75 72 63 65 |rs bridg|e-source|
|00001880| 2d 69 6e 73 65 72 74 20 | 62 72 69 64 67 65 2d 64 |-insert |bridge-d|
|00001890| 65 73 74 69 6e 61 74 69 | 6f 6e 2d 69 6e 73 65 72 |estinati|on-inser|
|000018a0| 74 20 62 72 69 64 67 65 | 2d 63 68 75 6e 6b 2d 73 |t bridge|-chunk-s|
|000018b0| 69 7a 65 20 62 72 69 64 | 67 65 2d 6f 6c 64 2d 66 |ize brid|ge-old-f|
|000018c0| 69 6c 74 65 72 20 62 72 | 69 64 67 65 2d 73 74 72 |ilter br|idge-str|
|000018d0| 69 6e 67 20 62 72 69 64 | 67 65 2d 69 6e 2d 70 72 |ing brid|ge-in-pr|
|000018e0| 6f 67 72 65 73 73 20 62 | 72 69 64 67 65 2d 73 65 |ogress b|ridge-se|
|000018f0| 6e 64 2d 74 6f 2d 62 75 | 66 66 65 72 20 6e 69 6c |nd-to-bu|ffer nil|
|00001900| 20 62 6f 75 6e 64 70 20 | 63 6f 6d 69 6e 74 2d 70 | boundp |comint-p|
|00001910| 72 6f 6d 70 74 2d 72 65 | 67 65 78 70 20 70 72 6f |rompt-re|gexp pro|
|00001920| 63 65 73 73 20 70 72 6f | 63 65 73 73 2d 66 69 6c |cess pro|cess-fil|
|00001930| 74 65 72 20 62 72 69 64 | 67 65 2d 66 69 6c 74 65 |ter brid|ge-filte|
|00001940| 72 20 73 65 74 2d 70 72 | 6f 63 65 73 73 2d 66 69 |r set-pr|ocess-fi|
|00001950| 6c 74 65 72 20 72 75 6e | 2d 68 6f 6f 6b 73 20 62 |lter run|-hooks b|
|00001960| 72 69 64 67 65 2d 68 6f | 6f 6b 20 6d 65 73 73 61 |ridge-ho|ok messa|
|00001970| 67 65 20 22 50 72 6f 63 | 65 73 73 20 62 72 69 64 |ge "Proc|ess brid|
|00001980| 67 65 20 69 73 20 69 6e | 73 74 61 6c 6c 65 64 22 |ge is in|stalled"|
|00001990| 5d 20 35 20 28 23 24 20 | 2e 20 35 38 39 31 29 20 |] 5 (#$ |. 5891) |
|000019a0| 6e 69 6c 5d 29 0a 23 40 | 37 31 20 4d 75 73 74 20 |nil]).#@|71 Must |
|000019b0| 62 65 20 63 61 6c 6c 65 | 64 20 66 72 6f 6d 20 74 |be calle|d from t|
|000019c0| 68 65 20 70 72 6f 63 65 | 73 73 27 73 20 62 75 66 |he proce|ss's buf|
|000019d0| 66 65 72 2e 20 20 52 65 | 6d 6f 76 65 73 20 61 6e |fer. Re|moves an|
|000019e0| 79 20 61 63 74 69 76 65 | 20 62 72 69 64 67 65 2e |y active| bridge.|
|000019f0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 72 65 73 |..(defal|ias 'res|
|00001a00| 65 74 2d 62 72 69 64 67 | 65 20 23 5b 6e 69 6c 20 |et-bridg|e #[nil |
|00001a10| 22 08 ab 8a c1 8e 08 c2 | 70 21 c3 5c 22 29 87 c4 |".......|p!.\")..|
|00001a20| c5 21 87 22 20 5b 62 72 | 69 64 67 65 2d 69 6e 2d |.!." [br|idge-in-|
|00001a30| 70 72 6f 67 72 65 73 73 | 20 28 28 62 79 74 65 2d |progress| ((byte-|
|00001a40| 63 6f 64 65 20 22 c0 11 | c0 87 22 20 5b 6e 69 6c |code "..|.." [nil|
|00001a50| 20 62 72 69 64 67 65 2d | 69 6e 2d 70 72 6f 67 72 | bridge-|in-progr|
|00001a60| 65 73 73 5d 20 31 29 29 | 20 67 65 74 2d 62 75 66 |ess] 1))| get-buf|
|00001a70| 66 65 72 2d 70 72 6f 63 | 65 73 73 20 6e 69 6c 20 |fer-proc|ess nil |
|00001a80| 6d 65 73 73 61 67 65 20 | 22 4e 6f 20 62 72 69 64 |message |"No brid|
|00001a90| 67 65 20 69 6e 20 70 72 | 6f 67 72 65 73 73 2e 22 |ge in pr|ogress."|
|00001aa0| 5d 20 33 20 28 23 24 20 | 2e 20 36 35 37 31 29 20 |] 3 (#$ |. 6571) |
|00001ab0| 6e 69 6c 5d 29 0a 23 40 | 34 30 20 52 65 6d 6f 76 |nil]).#@|40 Remov|
|00001ac0| 65 20 62 72 69 64 67 65 | 20 66 72 6f 6d 20 74 68 |e bridge| from th|
|00001ad0| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00001ae0| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 72 65 |...(defa|lias 're|
|00001af0| 6d 6f 76 65 2d 62 72 69 | 64 67 65 20 23 5b 6e 69 |move-bri|dge #[ni|
|00001b00| 6c 20 22 c0 70 21 89 19 | ab 87 c2 09 21 c3 61 ac |l ".p!..|....!.a.|
|00001b10| 88 c4 c5 c6 70 21 5c 22 | aa 93 c7 20 88 c8 09 0e |....p!\"|... ....|
|00001b20| 09 5c 22 88 0e 09 09 0e | 5c 6e 5c 22 88 cb cc 21 |.\".....|\n\"...!|
|00001b30| 29 87 22 20 5b 67 65 74 | 2d 62 75 66 66 65 72 2d |)." [get|-buffer-|
|00001b40| 70 72 6f 63 65 73 73 20 | 70 72 6f 63 65 73 73 20 |process |process |
|00001b50| 70 72 6f 63 65 73 73 2d | 66 69 6c 74 65 72 20 62 |process-|filter b|
|00001b60| 72 69 64 67 65 2d 66 69 | 6c 74 65 72 20 65 72 72 |ridge-fi|lter err|
|00001b70| 6f 72 20 22 25 73 20 68 | 61 73 20 6e 6f 20 62 72 |or "%s h|as no br|
|00001b80| 69 64 67 65 22 20 62 75 | 66 66 65 72 2d 6e 61 6d |idge" bu|ffer-nam|
|00001b90| 65 20 72 65 73 65 74 2d | 62 72 69 64 67 65 20 73 |e reset-|bridge s|
|00001ba0| 65 74 2d 70 72 6f 63 65 | 73 73 2d 66 69 6c 74 65 |et-proce|ss-filte|
|00001bb0| 72 20 62 72 69 64 67 65 | 2d 6f 6c 64 2d 66 69 6c |r bridge|-old-fil|
|00001bc0| 74 65 72 20 62 72 69 64 | 67 65 2d 73 74 72 69 6e |ter brid|ge-strin|
|00001bd0| 67 20 6d 65 73 73 61 67 | 65 20 22 50 72 6f 63 65 |g messag|e "Proce|
|00001be0| 73 73 20 62 72 69 64 67 | 65 20 69 73 20 72 65 6d |ss bridg|e is rem|
|00001bf0| 6f 76 65 64 2e 22 5d 20 | 35 20 28 23 24 20 2e 20 |oved."] |5 (#$ . |
|00001c00| 36 38 34 33 29 20 6e 69 | 6c 5d 29 0a 23 40 31 33 |6843) ni|l]).#@13|
|00001c10| 30 20 57 69 74 68 20 70 | 6f 69 6e 74 20 61 74 20 |0 With p|oint at |
|00001c20| 62 72 69 64 67 65 2d 73 | 74 61 72 74 2c 20 73 65 |bridge-s|tart, se|
|00001c30| 6e 64 73 20 62 72 69 64 | 67 65 2d 73 74 61 72 74 |nds brid|ge-start|
|00001c40| 20 2b 20 73 74 72 69 6e | 67 20 2b 0a 62 72 69 64 | + strin|g +.brid|
|00001c50| 67 65 2d 65 6e 64 20 74 | 6f 20 62 72 69 64 67 65 |ge-end t|o bridge|
|00001c60| 2d 66 69 6c 74 65 72 2e | 20 20 57 69 74 68 20 70 |-filter.| With p|
|00001c70| 72 65 66 69 78 2c 20 75 | 73 65 20 63 75 72 72 65 |refix, u|se curre|
|00001c80| 6e 74 20 72 65 67 69 6f | 6e 20 74 6f 20 73 65 6e |nt regio|n to sen|
|00001c90| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 68 |d...(def|alias 'h|
|00001ca0| 61 6e 64 2d 62 72 69 64 | 67 65 20 23 5b 28 73 74 |and-brid|ge #[(st|
|00001cb0| 61 72 74 20 65 6e 64 29 | 20 22 08 ab 85 09 5c 6e |art end)| "....\n|
|00001cc0| 5e aa 8b c3 0c 21 ab 83 | 60 aa 83 c5 c6 21 08 ab |^....!..|`....!..|
|00001cd0| 85 09 5c 6e 5d aa 8e c7 | 0e 08 c9 ca 23 ab 83 60 |..\n]...|....#..`|
|00001ce0| aa 83 c5 cb 21 1e 0c 1e | 0d ce cf 70 21 0e 0d 0e |....!...|...p!...|
|00001cf0| 0c 7b 5c 22 2a 87 22 20 | 5b 63 75 72 72 65 6e 74 |.{\"*." |[current|
|00001d00| 2d 70 72 65 66 69 78 2d | 61 72 67 20 73 74 61 72 |-prefix-|arg star|
|00001d10| 74 20 65 6e 64 20 6c 6f | 6f 6b 69 6e 67 2d 61 74 |t end lo|oking-at|
|00001d20| 20 62 72 69 64 67 65 2d | 73 74 61 72 74 2d 72 65 | bridge-|start-re|
|00001d30| 67 65 78 70 20 65 72 72 | 6f 72 20 22 4e 6f 74 20 |gexp err|or "Not |
|00001d40| 6c 6f 6f 6b 69 6e 67 20 | 61 74 20 62 72 69 64 67 |looking |at bridg|
|00001d50| 65 2d 73 74 61 72 74 2d | 72 65 67 65 78 70 22 20 |e-start-|regexp" |
|00001d60| 72 65 2d 73 65 61 72 63 | 68 2d 66 6f 72 77 61 72 |re-searc|h-forwar|
|00001d70| 64 20 62 72 69 64 67 65 | 2d 65 6e 64 2d 72 65 67 |d bridge|-end-reg|
|00001d80| 65 78 70 20 6e 69 6c 20 | 74 20 22 44 69 64 6e 27 |exp nil |t "Didn'|
|00001d90| 74 20 73 65 65 20 62 72 | 69 64 67 65 2d 65 6e 64 |t see br|idge-end|
|00001da0| 2d 72 65 67 65 78 70 22 | 20 70 31 20 70 30 20 62 |-regexp"| p1 p0 b|
|00001db0| 72 69 64 67 65 2d 66 69 | 6c 74 65 72 20 67 65 74 |ridge-fi|lter get|
|00001dc0| 2d 62 75 66 66 65 72 2d | 70 72 6f 63 65 73 73 5d |-buffer-|process]|
|00001dd0| 20 35 20 28 23 24 20 2e | 20 37 31 38 36 29 20 22 | 5 (#$ .| 7186) "|
|00001de0| 72 22 5d 29 0a 28 70 72 | 6f 76 69 64 65 20 27 62 |r"]).(pr|ovide 'b|
|00001df0| 72 69 64 67 65 29 0a | |ridge). | |
+--------+-------------------------+-------------------------+--------+--------+